<?php

use Illuminate\Database\Seeder;
use App\Models\Domain;

class DomainsTableSeeder extends Seeder
{
    public function run()
    {
        $domains = factory(Domain::class)->times(1)->make()->each(function ($domain, $index) {
            if ($index == 0) {
                // $domain->field = 'value';
            }
        });

        Domain::insert($domains->toArray());
    }

}

